package cn.qinhao.pethome.basic.base.mapper;

import cn.qinhao.pethome.basic.base.query.BaseQuery;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface BaseMapper<T> {
    //增加
    void add(T t);
    //删除
    void  delete (Long id);
    //修改
    void update(T  t);
    //查询一个
    T selectOne(Long id);
    //查询所有
    List <T>selectAll();
    //分页
    //查询总条数
    Long queryCount(BaseQuery query);
    //每页显示几条数据的集合
    List<T> queryData(BaseQuery query);
    //批量删除
    void batchRemove(List<Long> ids);
}
